package com.qing.common.base;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewbinding.ViewBinding;

public class BaseViewHolder<T, VB extends ViewBinding> extends RecyclerView.ViewHolder {

    private final @NonNull VB mBinding;

    public BaseViewHolder(@NonNull VB binding) {
        super(binding.getRoot());
        mBinding = binding;
    }

    public void bind(@NonNull T data) {
    }

    @NonNull
    public final VB getBinding() {
        return mBinding;
    }
}
